/**
 Copyright will be fixed soon.
 Author: Hiroshi Ota.
 $Date: $
 $Revision: $
*/

#include "TouchSensor.h"

#ifndef _BRICKOS_

TouchSensor::TouchSensor(const Sensor::Port port, ISimulatorControl* sc)
: Sensor(port, false, sc,"touch-sensor")
{}

bool TouchSensor::pressed() const
{
	int status = get();
	
	return (status!=0);
}

#endif // _BRICKOS_

